import request from '@/utils/request'
import { ApiModulesRoutes } from '@/consts.js'

/**
 * 分页查询算法绑定的设备
 * @param {number} paramVo.pageNo
 * @param {number} paramVo.pageSize
 * @param {string} paramVo.abilityId
 * @return
 */
export async function apiFindDevicePageByParam(paramVo) {
  const url = ApiModulesRoutes.BASE + '/alg/ability/device/findDevicePageByParam'
  return await request.post(url, paramVo)
}


/**
 * 批量删除算法对应的设备
 * @param {Array} abilityDeviceIds
 * @return
 */
export async function apiDelAbilityDeviceBatch(abilityDeviceIds) {
  const url = ApiModulesRoutes.BASE + '/alg/ability/device/delAbilityDeviceBatch'
  return await request.post(url, abilityDeviceIds)
}
